package com.fang.commons;

import org.springframework.context.annotation.Bean;

import com.netflix.loadbalancer.IRule;

public class MyLoadBalanceConfig {

	/*
	 * 负载均衡的配置操作
	 */
	@Bean
	public IRule ribbonRule() {
		// 随机的访问策略
		return new com.netflix.loadbalancer.RandomRule();
	};
}
